import { Controller,Param,ParseIntPipe ,Get} from '@nestjs/common';

@Controller('book')
export class BookController {
    @Get('/:id')
    getBook(@Param('id',ParseIntPipe) id:number) {
        console.log( typeof id );
        return 'get book'+id;
    }
}
